﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _13._3
{
    public class Display
    {
        public void DisplayMessage(object source,MessageArrivedEventArgs e)
        {
            Console.WriteLine($"Message arrived from:{((Connection) source).Name}");
            Console.WriteLine($"Message Text:{e.Message}");
        }
    }
}
